using KinonekoSoftware.CodariaDB.Documents.Personalities;

namespace KinonekoSoftware.Studio.Models.DataParts.Personality
{
    public abstract class PreferenceGroupPresenter : ObservableObject
    {
        public int Count => Group.Count;
        
        public string Name
        {
            get => Group.Name;
            set
            {
                Group.Name = value;
                RaiseUpdated();
            }
        }

        public string Intro
        {
            get => Group.Intro;
            set
            {
                Group.Intro = value;
                RaiseUpdated();
            }
        }
        
        public abstract PreferenceGroup Group { get; }
    }
}